package com.sen.mapper;

import com.sen.pojo.Department;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Collection;

//部门mapper
@Mapper
@Repository
public interface DepartmentMapper {


    //获取所有部门信息
    Collection<Department> getDepartments();

    //通过id得到部门
    Department getDepartmentById(Integer id);
}
